﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Guru.Web.UI;
using System.Collections.Specialized;

namespace Guru.Web.Controls.Asp
{
    public class Label : System.Web.UI.WebControls.Label, IMultiLanguageLoader
    {
        public Label()
            : base()
        {

        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            this.LoadTextFromResource(((GuruPage)this.Page).CurrentLanguage);
        }
        public void SetText(NameValueCollection text)
        {
            this.Text = text[this.ID];
        }
    }
}
